package com.asset.controller;

import com.asset.service.IndexService;
import com.asset.vo.AjaxJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;


@RestController
public class IndexController {
	@Autowired
	IndexService indexService;
	@RequestMapping("/index")
	public AjaxJson  index(HttpServletRequest session,String year){
		return indexService.index(session,year);

	}

}
